package com.beibojd.pojo;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * @Author: 洪耀荣
 * @Date: 2021-06-19 14:57:21
 */
@Table(name = "goods")
public class Goods {
    @Id
    @Column(name = "id")
    private Integer id;
    @Column(name = "goodsname")
    private String goodsName;
    @Column(name = "goodsfactory")//厂家
    private String goodsFactory;
    @Column(name = "goodsSpecs")//规格
    private String goodsSpecs;
    @Column(name = "goodsmodel")//型号
    private String goodsModel;

    public Goods() {
    }

    public Goods(Integer id, String goodsName, String goodsFactory, String goodsSpecs, String goodsModel) {
        this.id = id;
        this.goodsName = goodsName;
        this.goodsFactory = goodsFactory;
        this.goodsSpecs = goodsSpecs;
        this.goodsModel = goodsModel;
    }

    public Goods(String goodsName, String goodsFactory, String goodsSpecs, String goodsModel) {
        this.goodsName = goodsName;
        this.goodsFactory = goodsFactory;
        this.goodsSpecs = goodsSpecs;
        this.goodsModel = goodsModel;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    public String getGoodsFactory() {
        return goodsFactory;
    }

    public void setGoodsFactory(String goodsFactory) {
        this.goodsFactory = goodsFactory;
    }

    public String getGoodsSpecs() {
        return goodsSpecs;
    }

    public void setGoodsSpecs(String goodsSpecs) {
        this.goodsSpecs = goodsSpecs;
    }

    public String getGoodsModel() {
        return goodsModel;
    }

    public void setGoodsModel(String goodsModel) {
        this.goodsModel = goodsModel;
    }

    @Override
    public String toString() {
        return "Goods{" +
                "id=" + id +
                ", goodsName='" + goodsName + '\'' +
                ", goodsFactory='" + goodsFactory + '\'' +
                ", goodsSpecs='" + goodsSpecs + '\'' +
                ", goodsModel='" + goodsModel + '\'' +
                '}';
    }
}
